﻿using Blog190311.Models;
using Blog190311.Models.DBModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Blog190311.Controllers
{
    public class PartialViewController : Controller
    {
        // GET: PartialView
        public ActionResult Index()
        {
            return PartialView();
        }

        /// <summary>
        /// 我的相册
        /// </summary>
        /// <returns></returns>
        public ActionResult MyGallery()
        {
            List<Article> list = Blog190311.Models.DAL.PhotoService.GetArticleGallery();
            return PartialView(list);
        }

        /// <summary>
        /// 关于我
        /// </summary>
        /// <returns></returns>
        public ActionResult MyAbout()
        {
            List<UIData> list = Blog190311.Models.DAL.UserService.GetArticleAbout();
            return PartialView(list);
        }

        /// <summary>
        /// 文章分类
        /// </summary>
        /// <returns></returns>
        public ActionResult MyWord()
        {
            List<Article> list = Blog190311.Models.DAL.ArticleService.GetArticleWord();
            return PartialView(list);
        }

        /// <summary>
        /// 站长推荐
        /// </summary>
        /// <returns></returns>
        public ActionResult MyTuiJian()
        {
            List<Article> list = Blog190311.Models.DAL.ArticleService.GetArticleTuiJian();
            return PartialView(list);
        }

        /// <summary>
        /// 点击排行
        /// </summary>
        /// <returns></returns>
        public ActionResult MyClick()
        {
            List<Article> list = Blog190311.Models.DAL.ArticleService.GetArticleClick();
            return PartialView(list);
        }

        /// <summary>
        /// 标签云
        /// </summary>
        /// <returns></returns>
        public ActionResult MyCloud()
        {
            List<Article> list = Blog190311.Models.DAL.ArticleService.GetArticleCloud();
            return PartialView(list);
        }
        /// <summary>
        /// 搜索
        /// </summary>
        /// <returns></returns>
        public ActionResult Share()
        {
            return PartialView();
        }
    }
}